<!DOCTYPE html>
<html class="Content">
<head>
    <title>xUnit.js: Skipping Tests</title>
    <link type="text/css" rel="Stylesheet" href="../../Style/documentation.css" />
</head>
<body>
    <h1>Skipping Tests</h1>
    <p>
        Facts and Fixtures can be temporarily skipped by calling their <em>ISkippable</em><strong>.Skip()</strong> method with an optional <em>reason</em> argument.
        <span class="Code">
var fact=new xUnit.js.Model.Fact(function(){/* TODO: Write Me. */});
fact<strong>.Skip("This behavior is not yet established. Should have designed it using tests.")</strong>;

var engine=new xUnit.js.Engine();
engine.RegisterFact(fact);
engine.Run(); // Ignores the only registered test
        </span>
    </p>
    <p>
        Skipping tests can be useful when APIs are undergoing rapid or iterative change, but should be used sparingly, as skipped tests and the promises they make 
        can easily fall out of sight, and out of mind.
    </p>
</body>
</html>